<template>
  <div>
    <el-form-item label="分值算法">
      <el-select v-model="self0ptions.options.sourceSelect" placeholder="请选择">
        <el-option
            v-for="item in dataArray"
            :key="item"
            :label="item"
            :value="item">
        </el-option>
      </el-select>
    </el-form-item>
  </div>
</template>
<script>
export default {
  name: "sourceSelect-editor",
  props: {
    self0ptions: {
      type: Object,
    }
  },
  data() {
    return {
      dataArray: ['此题有唯一答案和分值', '每个选项可自定义分值', '不计分']
    }
  },
  created() {
    switch (this.self0ptions.type) {
      case 'radio':
        this.dataArray = ['此题有唯一答案和分值', '每个选项可自定义分值', '不计分']
        break
      case 'checkbox':
        this.dataArray = ['全部答对才得分', '少选得部分分;错选得0分', '每个选项可自定义分值',
        '扣分题(默认得总分)','不计分']
        break
      case 'select':
        this.dataArray = ['全部答对才得分', '少选得部分分;错选得0分', '每个选项可自定义分值',
          '扣分题(默认得总分)','不计分']
        break
    }
  }
}
</script>
<style scoped lang="scss">

</style>